Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace tanArc(to) with tanArcToRelative #3729

Merged
merged 2 commits into from
Aug 30, 2024

Conversation

adamchalmers
Copy link
Collaborator

@adamchalmers adamchalmers commented Aug 30, 2024

Closes #3319

Adding a relative: bool parameter to tangentialArcTo proved to be very complicated (see PR). The Rust changes were simple, but the Typescript code has deeply-held assumptions that stdlib sketch functions have 2 mandatory variables (a point, then a sketchgroup) and one optional tag. Breaking this assumption involved a lot of changes that complicated the code. It also made me realize that there's probably value in keeping the stdlib sketch functions similar, i.e. they all have the same type signature. I think this will result in fewer surprises for users.

Copy link

qa-wolf bot commented Aug 30, 2024

QA Wolf here! As you write new code it's important that your test coverage is keeping up.
Click here to request test coverage for this PR!

Copy link

vercel bot commented Aug 30, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
modeling-app ✅ Ready (Inspect) Visit Preview Aug 30, 2024 5:41pm

Copy link
Contributor

@jtran jtran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is a lot simpler. It breaks people's KCL less too.

@adamchalmers adamchalmers merged commit a4cf68c into main Aug 30, 2024
25 of 28 checks passed
@adamchalmers adamchalmers deleted the achalmers/yet-again-tan-new-fn branch August 30, 2024 18:44
@pierremtb pierremtb mentioned this pull request Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tangentialArc should not have a "to" mode
2 participants